/**
 * \file can_rx.h
 * \brief CAN bus driver (RX)
 * \author Radim Badsi <radim.badsi@polytech.univ-montp2.fr>
 * \date 10/07/2009
 */

#ifndef CAN_RX_H
#define CAN_RX_H

#include "can_common.h"

/**
  * CAN incoming queue size (number of messages)
  */
#define CAN_INCOMING_QUEUE_SIZE 5

/**
  * Return a pointer to the CAN incoming queue
  * @return pointer to the CAN incoming queue
  */
OS_EVENT* get_can_incoming_queue(void);

/**
  * Return a pointer to the new message semaphore
  * @return new message semaphore
  */
OS_EVENT* get_can_new_message(void);

/**
  * CAN RX Task
  */
void can_rx(void* pdata);


#endif